package com.daxiong.pattern.factory.demo;

/**
 * 奔驰 E260
 *
 * @author sunyanxiong
 * @date 2017/4/23
 */
public class BenzE260 implements Benz {

    public BenzE260() {
        this.carColor();
        this.carSpeed();
        this.carPrice();
    }

    public String carColor() {
        System.out.println("奔驰 E260 红色");
        return "红色";
    }

    public Double carSpeed() {
        System.out.println("奔驰 E260 1000迈每小时");
        return 1000D;
    }

    public Double carPrice() {
        System.out.println("奔驰 E260 20000000万");
        return 20000000D;
    }
}
